<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./css/main.css" />
  </head>
  <body>
    <div class="dialog" id="dialog">
      <div class="content">
        <button class="icon-close" id="dialogCloseBtn">x</button>
      </div>
    </div>

    <h1>hello APP</h1>

    <button id="openBtn">open</button>

    <script>
      const openBtn = document.getElementById("openBtn");
      const dialog = document.getElementById("dialog");
      const dialogCloseBtn = document.getElementById("dialogCloseBtn");
      openBtn.onclick = function () {
        dialog.style.display = "flex";
      };
      dialogCloseBtn.onclick = function () {
        dialog.style.display = "none";
      };
    </script>
  </body>
</html>
